<template>
  <div id="app">
    <nav>
      <ul>
        <li>
          <a href="./appHome">
            首页
            <i class="iconfont icon-category"></i>
          </a>
        </li>
        <li>
          <a href="./appSort">
            分类
            <i class="iconfont icon-all"></i>
          </a>
        </li>
        <li>
          <a href="./appCart">
            购物车
            <i class="iconfont icon-cart"></i>
          </a>
        </li>
        <li>
          <a href="./appMine">
            我的
            <i class="iconfont icon-account"></i>
          </a>
        </li>
      </ul>
    </nav>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  }
};
</script>
 

<style lang="scss">
nav {
  z-index: 99;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.53rem;
  background: #fff;
  ul {
    width: 100%;
    height: 100%;
    a {
      position: relative;
      display: inline-block;
      float: left;
      box-sizing: border-box;
      width: 25%;
      height: 100%;
      padding-top: 1rem;
      text-align: center;
      i {
        display: inline-block;
        position: absolute;
        top: 0.18rem;
        left: 50%;
        margin-left: -0.51rem;
        width: 1.02rem;
        height: 0.72rem;
      }
    }
  }
}
</style>


